package io.xccit.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.xccit.model.system.SysDept;
import io.xccit.system.mapper.ISysDeptMapper;
import io.xccit.system.service.ISysDeptService;
import io.xccit.system.util.MenuItemHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author CH_ywx
 * @date 2023-06-28
 * @description
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<ISysDeptMapper,SysDept> implements ISysDeptService {

    @Resource
    private ISysDeptMapper sysDeptMapper;

    @Override
    public List<SysDept> selectList() {
        LambdaQueryWrapper<SysDept> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(SysDept::getStatus,1);
        List<SysDept> sysDeptList = sysDeptMapper.selectList(wrapper);
        return sysDeptList;
    }
}
